﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Employees
    {
        public Employees(string worknum, string name, string section) 
        {
            this.worknum = worknum;
            this.name = name;
            this.section = section;
        }
        private string worknum;
        private string name;
        private string section;

        public string Worknum
        {
            get { return this.worknum; }
            set { this.worknum = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Section
        {
            get { return this.section; }
            set { this.section = value; }
        }
        public void Write()
        {
            //worknum = "0223";
            //name = "张三";
            //section = "管理";
            Console.WriteLine("工号为{0},姓名为{1},部门为{2}部", worknum, name, section);
        }
    }
}
